package com.seari.groovyrunner.mapper;

import com.seari.groovyrunner.bean.GroovyLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface GroovyLogMapper {
    int addGroovyLog(GroovyLog groovyLog);
    int deleteGroovyLog(@Param("id")Integer id);
    List<GroovyLog> getGroovyLogListByService(@Param("service")String service, @Param("state")String state,@Param("startPage")Integer startPage,@Param("pageSize")Integer pageSize);
    int getLogCountByName(@Param("service")String service);

    void deleteGroovyLogByTime(@Param("date")String date);
}
